import Button from './Button'
import { ThemeContext } from '../theme-context'

function Users(props: any) {
    console.log(props, 'user props')
    return (
        <ThemeContext.Consumer>
            {(theme) => {
                return (
                    <div>
                        <h2>Context</h2>
                        <Button changeThme={props.changeThemes} />
                    </div >
                )
            }
            }
        </ThemeContext.Consumer>

    )
}

export default Users